package com.lua.event;

import com.core.ILuaEvent;
import com.google.protobuf.InvalidProtocolBufferException;

public abstract class JSONEvent implements ILuaEvent {
    @Override
    public String doSomething(String str) throws InvalidProtocolBufferException {

        return op(str);
    }

    public int parseInt(String val){

        float fl = new Float(val);

        return (int)fl;
    }

    public abstract String op(String jb);
}
